package com.zxc.dao;

import com.zxc.entity.Emp;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
  * @author: zxc
  * @return:
  * @time:  2021/5/18 11:00
  * @description:
  */
public interface EmpMapper {

    /**
      * @author: zxc
      * @return:
      * @time:  2021/5/18 11:00
      * @description: 获取所有
      */
    List<Emp> getAll();

    /**
      * @author: zxc
      * @return:
      * @time:  2021/5/18 17:03
      * @description: 删除
      */
    int delEmp(@Param("eno") int eno);

    /**
      * @author: zxc
      * @return:
      * @time:  2021/5/18 19:27
      * @description: 新增
      */
    int addEmp(Emp emp);

    /**
      * @author: zxc
      * @return:
      * @time:  2021/5/18 19:27
      * @description: 修改
      */
    int  updateEmp(Emp emp);
}
